#include<stdio.h>
#include <iostream>
#include<string.h>
int main()
{
  char buf[1024] = {0};

  FILE* fp = fopen("logclient.log", "r");
  if(!fp) {
      printf("file open failed!");
      return -1;
  }
  int cnt=0;
  int data1=0;
  int data2=0;
  fscanf(fp, "%d", &data2) ;
  data1 = data2;
  while(fscanf(fp, "%d", &data2)==1) {
    if(data2<=data1){
      std::cout<<"ERROR!"<<std::endl;
      break;
    }
    std::cout<<cnt++<<":ok!"<<std::endl;

    data1 = data2;
  }

  fclose(fp);
  return 0;
}
